<link rel="stylesheet" href="${ctxPath}/css/pages/aticle_browser.css"/>
<script type="text/javascript" src="${ctxPath}/js/pages/aticle_browser.js"></script>
<div class="pageheader">
    <h2><i class="fa fa-calendar"></i> 我的文章 <span>文章一览</span></h2>

    <div class="breadcrumb-wrapper">
        <span class="label">当前位置:</span>
        <ol class="breadcrumb">
            <li><a href="index.html">HomeCenter</a></li>
            <li><a href="calendar.html">我的文章</a></li>
            <li class="active">文章一览</li>
        </ol>
    </div>
</div>
<div class="contentpanel">
    <div class="panel panel-dark panel-alt">
        <div class="panel-heading">
            <h3 class="panel-title">文章一览</h3>

            <p>对于发布的文章进行查看，编辑，删除管理</p>
        </div>
        <div class="panel-body">
            <table id="aticleListTable" class="table">
                <thead>
                <tr>
                    <th class="col-sm-2">文章标题</th>
                    <th class="col-sm-2">文章概要</th>
                    <th class="col-sm-1">作者</th>
                    <th class="col-sm-2">创建时间</th>
                    <th class="col-sm-1">类型</th>
                    <th class="col-sm-1">阅读数</th>
                    <th class="col-sm-3">文章操作</th>
                </tr>

                </thead>
                <tbody>
                <%for(aticleVo in aticleList){%>
                <tr>
                    <td>${aticleVo.aticle_name}</td>
                    <td>${aticleVo.aticle_digest}</td>
                    <td>${aticleVo.aticle_author}</td>
                    <td>${aticleVo.aticle_createtime}</td>
                    <td>${aticleVo.aticle_category}</td>
                    <td>${aticleVo.aticle_read_num}</td>
                    <td><a href="${ctxPath}/homework/aticle_detail_preview.html?aticleId=${aticleVo.aticle_id}"
                           target="_blank" class="btn btn-success">查看</a>&nbsp;
                        <button class="btn btn-info" onclick="editAticleInfo('${aticleVo.aticle_id}')">编辑
                        </button>
                        &nbsp;
                        <button class="btn btn-danger" onclick="delAticleInfo('${aticleVo.aticle_id}')">删除
                        </button>
                    </td>
                </tr>
                <%}%>
                </tbody>
            </table>
        </div>
    </div>
</div>